<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Construct Web | Article Form</title>
</head>
<body>
	<center>
		<div style="color: teal; font-size: 30px">Construct Web | Insert
			Article Form</div>
		<form:form id="updateArticleForm" modelAttribute="article"
			method="post" action="updateArticle">
			<table width="400px" height="150px">
				<tr>
					<td><form:label path="id">Id</form:label></td>
					<td><form:input path="id" value="${articleObject.id}"
							readonly="true"></form:input></td>
				</tr>
				<tr>
					<td><form:label path="title">Title</form:label></td>
					<td><form:input path="title" value="${articleObject.title}"></form:input></td>
				</tr>
				<tr>
					<td><form:label path="content">Content</form:label></td>
					<td><form:input path="content"
							value="${articleObject.content}"></form:input></td>
				</tr>
				<tr>
					<td><form:label path="urlImage">Url Image</form:label></td>
					<td><form:input path="urlImage"
							value="${articleObject.urlImage}"></form:input></td>
				</tr>

				<tr>
					<td><form:label path="idSubCategory">Id Sub Category</form:label></td>
					<%-- 					<td><form:input path="idCategory"></form:input></td> --%>
					<td><form:select path="idSubCategory">
							<%-- 							<form:option value="-" label="--Please Select"/> --%>
							<form:options items="${subCategoryList}" itemValue="id"
								itemLabel="name" />
						</form:select></td>
				</tr>
				<tr>
					<td></td>
					<td><input type="submit" value="Update"></input></td>
				</tr>
			</table>
		</form:form>


	</center>

</body>
</html>